<%@ page contentType="text/html;charset=GBK" %>
<%@ page session="false" %>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c" %>

<html>
<head>
<title>DBGrid</title>
</head>
<link  type="text/css" rel="stylesheet" href="/component/dbgrid/dbgrid.css">
<body>
<script  type="text/javascript" src="/component/dbgrid/dbgrid.js"></script>
<script  type="text/javascript" src="/component/dbgrid/genresize.js"></script>
<script  type="text/javascript" src="/component/dbgrid/tablesort.js"></script>
<script  type="text/javascript" src="/public/commons.js"></script>
<script  type="text/javascript" src=<c:out value="${dbgrid.gridHandler}"/>></script>
<script language="javascript">
  var sortColumnName="";
  var sortType="desc";
</script>

<div class="scrollTable" id="ScrollArea">
<span class="scrollTableHead" id="HeaderSpan">
<table cellspacing="0" frame="border" id="HeaderTable" onclick="sortColumn(event);ResizeAll();" >
<thead>
   <tr>
   	   <td class="NoClick" width="40px" nowrap align="center"><input type="checkbox" id="selectAll" name="selectAll" onClick="selectAll()" class="CheckBox"></td>
   	   <c:forEach var="title" items="${dbgrid.gridTitles}">
       <td class="resizeMe" type='<c:out value="${title.type}"/>' style='<c:out value="${title.style}"/>' ><nobr>&nbsp;<c:out value="${title.label}"/>&nbsp;</nobr></td>
   	   </c:forEach>
      <td class="NoClick"></td>
   </tr>
</thead>
</table>
</span>

<span class="scrollTableBody" oncontextmenu="ContextMenu();" onscroll="SynScroll();">
<form name="listForm" method="post">
<table id="ListTable" cellspacing="0">
<tbody>
   <c:forEach var="row" items="${datalist}">
   <tr>
   	  <td width="40px" nowrap align="center">
   	    <nobr>&nbsp;<input type="checkbox" name="CheckBoxGroup" class="CheckBox" value='<c:out value="${row.id}"/>'>
   	  </td>
      <c:forEach var="item" items="${row.items}">
      <td align="left" style='<c:out value="${item.style}"/>'><nobr>&nbsp;<c:out value="${item.label}"/></nobr></td>
      </c:forEach>
   </tr>
   </c:forEach>
</tbody>
</table>
</form>
</span>
</div>
<%@ include file="/component/dbgrid/page.jsp" %>
<script type="text/javascript" src="/component/dbgrid/eventHandler.js"></script>
</body>
</html>


